package com.bw.springcloud.service;

import com.bw.springcloud.entity.CommonResult;
import com.bw.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * 类描述
 *
 * @author Mr.Wu
 * @create 2020-05-11
 */
@Component
public class PaymentFallbackService implements PaymentFeignService {
	@Override
	public CommonResult<Payment> getPaymentById(Long id) {
		return new CommonResult<>(400,"----PaymentFallbackService fall back paymentInfo_Timeout,o(╥﹏╥)o",null);
	}

	@Override
	public String paymentFeignTimeout() {
		return "----PaymentFallbackService fall back paymentInfo_Timeout,o(╥﹏╥)o";
	}
}
